<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> 
<%@ taglib prefix="onein" uri="http://www.onein.cn/jsp/taglib"%>

<div class="leftWrap2">   
            <div class="mt11">
                <div class="commonContentTopWrap5"><span><a></a></span></div>
                    <div class="commonContentMidWrap5" style="font-size:13px;">
                      <h2 style="border-bottom:1px #cccccc dotted;">我的信息</h2>
                       <table>
                         <tr>
                           <td>宝宝昵称:</td>
                           <td>
                             <c:choose>
						        <c:when test="${user.nickName != null and fn:length(user.nickName) > 0}">
						            <span class="textRed">${user.nickName }</span>
						        </c:when>
						        <c:otherwise>还没有？<a href="<onein:url value="/center/userinfo"/>" title="给宝宝添加生活中的昵称">添加昵称</a>
						        </c:otherwise>
						      </c:choose>
                           </td>
                         </tr>
                         <tr height="30px">
                           <td width="42%">宝宝生日:</td>
                           <td align="left">
                             <span class="textRed"><fmt:formatDate value="${user.birthday }" pattern="yyyy年MM月dd日"/></span>
                           </td>
                         </tr>
                         <tr >
                           <td>上次登录:</td>
                           <td>
                             <span class="textRed"><fmt:formatDate value="${user.lastLogin }" pattern="yyyy年MM月dd日"/></span>
                           </td>
                         </tr>
                         <tr height="30px">
                           <td>上次登录IP:</td>
                           <td>
                             <span class="textRed">${user.lastIp }</span>
                           </td>
                         </tr>
                         <tr height="30px">
                           <td colspan=2>
                             <a href="<onein:url value="/center/userinfo"/>" class="botton1" style="margin-left:10px;" title="修改你的个人资料"><span>修改资料</span></a>
                            	   <c:if test="${MEMBERSTATUS == null}">
                            	     <a href="<onein:url value="/center/memberService" />" class="botton1 ml11"><span>订购服务 </span></a>
                            	   </c:if>
                            	   <c:if test="${MEMBERSTATUS == true}">
                            	     <a href="<onein:url value="/center/memberService" />" class="botton1 ml11"><span>会员服务 </span></a>
                            	   </c:if>
                            	   <c:if test="${MEMBERSTATUS == false}">
                            	     <a href="<onein:url value="/center/memberService" />" class="botton1 ml11" <c:if test="${SUBDAYS != null }">title="您的会员服务还有${SUBDAYS}天到期,请及时续订." </c:if> ><span>会员续订 </span></a>
                            	   </c:if>
                            </td>
                         </tr>
                       </table>
                    </div>
                 <div class="commonContentBottomWrap5"><span><a></a></span></div>
   			</div>
            <div>
                <div class="commonContentTopWrap5"><span><a></a></span></div>
                    <div class="commonContentMidWrap5">
                      <h2 style="border-bottom:1px #cccccc dotted;">最新的育儿资讯：</h2>
                       <ul class="textListBig ml11" style="margin-top:10px;">
		                 <c:forEach var="content" items="${learnContents}">
		                   <c:choose>
											<c:when test="${fn:length(content.title) > 11}">
											  <li><a title="${content.title }" class="indexSctionTextDetail" target="_blank" href="<onein:url value="/learn/content/${content.id}.jhtml"/>" ><c:out value="${fn:substring(content.title, 0, 11)}..." /></a></li>
											</c:when>
											<c:otherwise>
											  <li><a title="${content.title }" class="indexSctionTextDetail" target="_blank" style="font-size:14px;line-height:24px;" href="<onein:url value="/learn/content/${content.id}.jhtml"/>" >${content.title}</a></li>
											</c:otherwise>
										</c:choose>
		                 </c:forEach>
		              </ul>
                   	  <div class="CommonMore" style="margin-top:14px;"><a title="进入育儿百科" target="_blank" href="${moreContentUrl }">更多育儿资讯...</a></div>
                    </div>                 
                 <div class="commonContentBottomWrap5"><span><a></a></span></div>
   			</div>
        </div>